<% if ['HTTP', 'HTTPS'].include?(protocol) -%>
- !ruby/object:Api::Type::String
  name: 'host'
  description: |
    The value of the host header in the <%= protocol -%> health check request.
    If left empty (default value), the public IP on behalf of which this health
    check is performed will be used.
- !ruby/object:Api::Type::String
  name: 'requestPath'
  description: |
    The request path of the <%= protocol -%> health check request.
    The default value is /.
<% elsif ['SSL', 'TCP'].include?(protocol) -%>
- !ruby/object:Api::Type::String
  name: 'request'
  description: |
    The application data to send once the <%= protocol -%> connection has been
    established (default value is empty). If both request and response are
    empty, the connection establishment alone will indicate health. The request
    data can only be ASCII.
- !ruby/object:Api::Type::String
  name: 'response'
  description: |
    The bytes to match against the beginning of the response data. If left empty
    (the default value), any response will indicate health. The response data
    can only be ASCII.
<%
   else
    raise "Unknown protocol: #{protocol}"
   end
-%>
- !ruby/object:Api::Type::Integer
  name: 'port'
  description: |
    The TCP port number for the <%= protocol -%> health check request.
    The default value is <%= port -%>.
- !ruby/object:Api::Type::String
  name: 'portName'
  description: |
    Port name as defined in InstanceGroup#NamedPort#name. If both port and
    port_name are defined, port takes precedence.
- !ruby/object:Api::Type::Enum
  name: 'proxyHeader'
  description: |
    Specifies the type of proxy header to append before sending data to the
    backend, either NONE or PROXY_V1. The default is NONE.
  values:
    - :NONE
    - :PROXY_V1
